package com.tensin.common.to.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author Tensin
 * @version 1.0
 * @date
 * elastic search对应的to
 */
@Data
public class SkuEsModel {


    private Long skuId;

    private Long spuId;

    //
    private String skuTitle;
    //
    private BigDecimal skuPrice;
    //sku默认图片
    private String skuImg;
    //销量
    private Long saleCount;
    //是否拥有库存
    private Boolean hasStock;
    //热度评分
    private Long hotScore;
    //品牌id
    private Long brandId;
    //分类id
    private Long catalogId;
    //品牌名称（不进行检索，冗余字段）
    private String brandName;
    //品牌图片
    private String brandImg;
    //分类名字
    private String catalogName;
    //商品规格属性
    private List<Attrs> attrs;

    //
    @Data
    public static class Attrs {

        private Long attrId;

        private String attrName;

        private String attrValue;

    }

}
